<?php

namespace common\db;

use Yii;
use yii\web\NotFoundHttpException;
use yii\behaviors\TimestampBehavior;
use yii\db\Expression;
use common\base\ModelHttpException;
use yii\helpers\Inflector;

/**
 * ActiveRecord is the base class for classes representing relational data in terms of objects.
 *
 * @author emhome<emhome@163.com>
 * @since 2.0
 */
class OriginalActiveRecord extends ActiveRecord {

    /**
     * @return \yii\db\Connection the database connection used by this AR class.
     */
    public static function getDb() {
        return Yii::$app->get('odb');
    }

}
